package com.gin.custom.cust2;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;

import com.gin.custom.R;

/**
 * Created by db.boy on 2018/6/7.
 */
public class PopuView extends LinearLayout {
    public PopuView(Context context) {
        this(context, null);
    }

    public PopuView(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public PopuView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        LayoutInflater.from(context).inflate(R.layout.popup_calendar_window, this);
        View view = findViewById(R.id.tv_date);
        view.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.i("-------","click");
            }
        });
    }

    @Override
    public void setOnTouchListener(OnTouchListener l) {
        super.setOnTouchListener(l);
        setVisibility(GONE);
    }
}
